package com.chushouya.order.dto.api.order;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@ApiModel("订单创建")
public class OrderSubmitApiDTO {

    @ApiModelProperty(value = "估价ID", required = true, example = "1956278551286722560")
    @NotNull(message = "估价ID回收不能为空")
    private String evaluateId;

    @ApiModelProperty(value = "回收方式(1:邮寄 2:上门)", required = true, example = "1")
    @NotNull(message = "回收方式不能为空")
    private Integer orderType;

    @ApiModelProperty(value = "用户地址", required = true)
    private OrderAddressApiDTO addressInfo;

    @ApiModelProperty(value = "订单额外信息", required = false)
    private OrderExtendApiDTO extendInfo;

    @ApiModelProperty(value = "账户信息", required = false)
    private AccountInfoApiDTO accountInfo;

    @ApiModelProperty(value = "预约开始时间", required = true, example = "2025-1-1 00:00:00")
    @NotNull(message = "预约开始时间不能为空")
    private Date appointStartTime;

    @ApiModelProperty(value = "预约结束时间", required = true, example = "2025-1-1 00:00:00")
    @NotNull(message = "预约结束时间不能为空")
    private Date appointEndTime;

    @ApiModelProperty(value = "渠道来源", required = false)
    private String channel;

    @ApiModelProperty(value = "订单备注", example = "请小心包装")
    private String remark;


}
